package string;

/**
 * String toUpperCase()
 * String toLowerCae()
 * 将当前字符串中的英文部分转换为全大写或小写
 */
public class ToUpperCaseDemo {
    public static void main(String[] args) {
        String line = "我爱Java我爱JAVA";
        String upper = line.toUpperCase();
        System.out.println(upper); //我爱JAVA我爱JAVA

        System.out.println("-------------------------------");

        String lower = line.toLowerCase();
        System.out.println(lower); //我爱java我爱java
    }
}
